{template 'common/header'}
{template 'web/task/navs'}
<style>
    .table>thead>tr>td, .table>tbody>tr>td, .table>tfoot>tr>td {overflow: visible !important;}
    .dropdown-menu{min-width:4em;}
</style>
<div class="panel panel-default">
    <div class="panel-heading">
    </div>
    <div class="panel-body">
        <table st-table="items" class="table table-striped table-condensed" style="display:auto;">
            <thead>
            <tr>
                <th style="width:8em;">头像</th>
                <th style="width:12em;">昵称</th>
                <th style="width:12em;">所属任务</th>
                <th style="width:12em;">时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            {loop $list['list'] $li}
            {php $member = M('member')->getInfo($li['openid']);}
            <tr>
                <td><img src="{php echo $member['avatar']}" style="width:4em;height:4em;" alt=""/></td>
                <td>{$member['nickname']}</td>
                <td><a href="{php echo $this->createWebUrl('task',array('id'=>$li['taskid'],'act'=>'edit'))}">点击查看</a></td>
                <td>{php echo date('Y-m-d H:i',$li['create_time'])}</td>
                <td>
                    <a href="{php echo $this->createWebUrl('recive',array('act'=>'delete','id'=>$li['id']))}" class="btn btn-danger">删除</a>
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>
        {php echo $list['pager']}
    </div>
</div>
{template 'common/footer'}